<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>查看手机预警用户</title>
    <%@ include file="/easyprepay/jsp/common/head.jsp"%>
    <%@ taglib uri="/easyprepay" prefix="easy"%>
    <script src="<%=basePath%>easyprepay/js/jquery-1.7.min.js" type="text/javascript"></script>
    
  </head>
  
  <body>
  <%
  /**当前页数*/
  String currentPageNum = request.getAttribute("currentPageNum") + "";
  /**总页数*/
  String totlePageNum = request.getAttribute("totlePageNum") + "";
  /**查询条件*/
  String condition = request.getAttribute("condition") + "";
  
  Map<String,String> params = (Map<String,String>)request.getAttribute("params");
  
  %>
  <form action="<%=basePath%>alert.do" method="post">
  <input type="hidden" name="method" id="method" value="viewAlertUser"/>
  <table width="100%" ><tr>
  <td align="center">手机号码：<input type="text" id="phoneNumber" name="phoneNumber" value="<%=params.get("phoneNumber")%>" /></td>
  <td align="center">手机余额：<input type="text" id="minBlance" name="minBlance" style='width: 35px' value="<%=params.get("minBlance")%>" />- 
  <input type="text" id="maxBlance" name="maxBlance" style='width: 35px' value="<%=params.get("maxBlance")%>" /></td>
  <td align="center">预警金额：<input type="text" id="alertBlance" name="alertBlance"  style='width: 35px' value="<%=params.get("alertBlance")%>" /></td>
  <td><input type="submit" value="查询"/></td>
  </tr></table>
  </form>
  
 
  <table align="center" width="95%" border="1">
  <tr><td></td><td>手机号</td><td>手机余额</td><td>预警金额</td></tr>
  <%
  //获取用户集合
  List<Map<String, Object>> list = (List<Map<String, Object>>)request.getAttribute("AlertUserArray");
  //循环展示
  int i = (Integer.valueOf(currentPageNum) - 1) * 12 + 1;
  for(Map<String, Object> map:list){ 
	
  %>
    <tr><td><%=i++%></td>
    <td><%=map.get("PHONE_NUMBER")%></td>
    <td><%=map.get("BALANCE")%></td>
    <td><%=map.get("ALERT_MOBILE")%></td></tr>
  <%} %>
  </table>

<easy:page id="alertPage" url='<%=(basePath + "alert.do?method=viewAlertUser")%>' currentPageNum='<%=currentPageNum%>' totalPageNum='<%=totlePageNum%>' params='<%=condition%>'/>

  <script src="<%=basePath%>easyprepay/js/common/page.js" type="text/javascript"></script>
  </body>
</html>
